/* 
非遗项目详情页样式表 (detail.css)
此文件包含非遗项目详情页面的特定样式
*/

/* ===== 详情页横幅 ===== */
.detail-banner {
    background-color: var(--dark-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/heritage/suzhou-kesi/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.detail-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-banner h1 {
    color: white;
    font-size: 4.2rem;
    margin-bottom: 2rem;
}

.detail-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.6rem;
}

.detail-meta span {
    display: flex;
    align-items: center;
}

.detail-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.detail-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
}

.detail-badge.national {
    background-color: #FF5722;
}

.detail-badge.provincial {
    background-color: #7CB342;
}

.detail-badge.city {
    background-color: #29B6F6;
}

.detail-badge.county {
    background-color: #8D6E63;
}

/* ===== 页内导航 ===== */
.detail-navigation {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--box-shadow);
}

.nav-wrapper {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
    scrollbar-width: none; /* Firefox */
}

.nav-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.nav-item {
    padding: 1.5rem 2rem;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    width: 100%;
}

/* ===== 详情页布局 ===== */
.detail-content {
    padding: 5rem 0;
}

.detail-layout {
    display: flex;
    gap: 3rem;
}

.detail-main {
    flex: 1;
    min-width: 0; /* 防止弹性项目超出容器 */
}

.detail-sidebar {
    width: 350px;
    min-width: 350px;
}

/* ===== 详情内容部分 ===== */
.detail-section {
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section h2 {
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.detail-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 3px;
    background-color: var(--primary-color);
}

/* ===== 图片轮播 ===== */
.gallery-slider {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.gallery-container {
    display: flex;
    position: relative;
    height: 400px;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item.active {
    opacity: 1;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.gallery-prev,
.gallery-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* ===== 概览内容 ===== */
.overview-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

.fact-item {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.fact-value {
    font-size: 1.8rem;
}

/* ===== 历史传承 ===== */
.history-timeline {
    position: relative;
    padding-left: 80px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-point {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-point:last-child {
    margin-bottom: 0;
}

.timeline-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: -46px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.point-date {
    position: absolute;
    top: -5px;
    left: -80px;
    width: 75px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.point-content h3 {
    margin-bottom: 1rem;
}

/* ===== 工艺特点 ===== */
.technique-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.technique-image {
    width: 40%;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.technique-image img {
    width: 100%;
    height: auto;
    display: block;
}

.technique-text {
    flex: 1;
}

.technique-text h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.technique-text p {
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.8rem;
}

.step-number {
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

.technique-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.highlight-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.highlight-text {
    flex: 1;
}

.highlight-text h3 {
    margin-bottom: 1rem;
}

/* ===== 价值评估 ===== */
.value-summary {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.value-chart {
    width: 300px;
    height: 300px;
}

.value-scores {
    flex: 1;
    min-width: 250px;
}

.score-item {
    margin-bottom: 2rem;
}

.score-label {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.score-bar {
    height: 12px;
    background-color: var(--gray-200);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.score-bar.risk {
    background-color: #FFECB3;
}

.score-bar.primary {
    background-color: #E1F5FE;
}

.score-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 6px;
    transition: width 1s ease;
}

.score-bar.risk .score-fill {
    background-color: #FF9800;
}

.score-bar.primary .score-fill {
    background-color: #2196F3;
}

.score-number {
    position: absolute;
    right: 10px;
    top: -25px;
    font-weight: 600;
    color: var(--gray-700);
}

.value-details {
    margin-top: 4rem;
}

.value-section {
    margin-bottom: 3rem;
}

.value-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* ===== 市场分析 ===== */
.market-overview h3,
.market-segments h3,
.market-trends h3,
.market-challenges h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.market-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.data-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.data-card:hover {
    transform: translateY(-10px);
}

.data-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.data-number {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.data-title {
    color: var(--gray-600);
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.segment-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.segment-item h4 {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 0;
}

.segment-content {
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

.segment-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.segment-text {
    flex: 1;
}

.segment-text p {
    margin-bottom: 1rem;
}

.segment-text p:last-child {
    margin-bottom: 0;
}

.trends-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trend-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 1.5rem;
}

.trend-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.trend-content {
    flex: 1;
}

.trend-content h4 {
    margin-bottom: 1rem;
}

.challenges-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.challenge-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.challenge-item h4 {
    margin-bottom: 1rem;
    color: var(--error-color);
}

/* ===== 投资机会 ===== */
.investment-overview p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.financial-data {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.financial-chart {
    width: 400px;
    height: 250px;
}

.financial-highlights {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.highlight-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-value {
    font-size: 2.4rem;
    color: var(--primary-color);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.model-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.model-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background-color: var(--primary-color);
    height: 100px;
}

.model-item h4 {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-200);
}

.model-content {
    padding: 2rem;
}

.model-content p {
    margin-bottom: 1rem;
}

.funding-tabs {
    margin-bottom: 4rem;
}

.funding-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.funding-tab {
    padding: 1rem 2rem;
    background-color: var(--gray-200);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.funding-tab.active,
.funding-tab:hover {
    background-color: var(--primary-color);
    color: white;
}

.funding-pane {
    display: none;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.funding-pane.active {
    display: block;
}

.funding-pane h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.funding-pane ul {
    padding-left: 2rem;
    list-style-type: disc;
}

.funding-pane ul li {
    margin-bottom: 1rem;
}

.investment-contact {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

.investment-contact h3 {
    margin-bottom: 1.5rem;
}

.investment-contact p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 传承人 ===== */
.inheritors-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.inheritor-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.inheritor-photo {
    width: 30%;
    min-width: 250px;
}

.inheritor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inheritor-info {
    flex: 1;
    padding: 3rem;
}

.inheritor-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.inheritor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--gray-600);
}

.inheritor-meta span {
    display: flex;
    align-items: center;
}

.inheritor-meta i {
    margin-right: 0.5rem;
}

.inheritor-desc {
    margin-bottom: 2rem;
}

.inheritor-desc p {
    margin-bottom: 1.5rem;
}

.inheritor-achievements h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.inheritor-achievements ul {
    padding-left: 2rem;
    list-style-type: disc;
}

.inheritor-achievements ul li {
    margin-bottom: 0.8rem;
}

.inheritor-training {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: 8px;
}

.inheritor-training h3 {
    margin-bottom: 1.5rem;
}

.inheritor-training p {
    margin-bottom: 2rem;
}

.training-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.training-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.training-item h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.training-item p {
    margin-bottom: 1rem;
}

/* ===== 相关项目 ===== */
.related-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-10px);
}

.related-image {
    position: relative;
}

.related-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.related-content {
    padding: 2rem;
}

.related-content h3 {
    margin-bottom: 1rem;
}

.related-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.related-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.related-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.related-link:hover::after {
    transform: translateX(5px);
}

/* ===== 侧边栏 ===== */
.sidebar-box {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

.sidebar-box:last-child {
    margin-bottom: 0;
}

.sidebar-box h3 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* 评估摘要 */
.assessment-score {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.score-circle svg {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3.8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 1s ease;
}

.score-text {
    font-family: Arial, sans-serif;
    font-size: 12px;
    fill: var(--dark-color);
    font-weight: bold;
    text-anchor: middle;
}

.score-label {
    font-weight: 600;
    color: var(--gray-600);
}

.assessment-summary {
    margin-bottom: 2rem;
}

/* 保护情况 */
.protection-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.protection-item {
    display: flex;
    gap: 1.5rem;
}

.protection-year {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}

/* 联系方式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 0.5rem;
}

.contact-detail h4 {
    margin-bottom: 0.5rem;
}

/* 参观体验 */
.visit-places {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visit-place {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.visit-place:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.visit-place h4 {
    margin-bottom: 1rem;
}

.visit-place p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.visit-place i {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-5px);
    color: white;
}

.share-btn.weixin {
    background-color: #07C160;
}

.share-btn.weibo {
    background-color: #E6162D;
}

.share-btn.qq {
    background-color: #1DA1F2;
}

.share-btn.link {
    background-color: #333;
}

/* ===== 底部操作按钮 ===== */
.detail-actions {
    padding: 2rem 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    z-index: 89;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
}

/* ===== 响应式调整 ===== */
@media (max-width: 992px) {
    .detail-layout {
        flex-direction: column;
    }
    
    .detail-sidebar {
        width: 100%;
        min-width: 0;
    }
    
    .technique-content {
        flex-direction: column;
    }
    
    .technique-image {
        width: 100%;
        min-width: 0;
    }
    
    .inheritor-item {
        flex-direction: column;
    }
    
    .inheritor-photo {
        width: 100%;
        min-width: 0;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        height: 300px;
    }
    
    .value-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .investment-overview {
        padding: 2rem;
    }
    
    .actions-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .detail-banner h1 {
        font-size: 3.2rem;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-container {
        height: 200px;
    }
    
    .quick-facts {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}
